package ylsb.service;





import org.springframework.stereotype.Service;
import ylsb.dao.*;
import ylsb.model.*;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class FujianService {

    @Resource
    Hc2Mapper hc2Mapper;
    @Resource
    Hc3Mapper hc3Mapper;
    @Resource
    Hc45Mapper hc45Mapper;


    public boolean isexistByxiangmuId(String xiangmuId,String xiangmuleixing) {
        if (xiangmuleixing.equals("13")) {
            Hc2Example mmExample = new Hc2Example();
            Hc2Example.Criteria criteria = mmExample.createCriteria();
            criteria.andXiangmuidEqualTo(xiangmuId);
            return hc2Mapper.selectByExample(mmExample).size() > 0;
        }
        return false;
    }



}
